//
//  ViewController.m
//  ZSHUDSet-master
//
//  Created by safiri on 2018/6/29.
//  Copyright © 2018年 safiri. All rights reserved.
//

#import "ViewController.h"
#import "UIViewController+ZSTopDownHUD.h"


@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}
- (IBAction)success:(id)sender {
    [ZSTopDownHUD showHUDAutoHideWithType:HUDViewTypeSuccess image:nil hint:@"showHUDAutoHideWithType:HUDViewTypeSuccess" hintTextColor:nil backgroundColor:[UIColor redColor]];
}
- (IBAction)error:(id)sender {
    [self showTDErrorHUDAutoHide:@"HUDViewTypeError"];
}
- (IBAction)message:(id)sender {
    [self showTDHUDAutoHideWithType:HUDViewTypeMessage text:@"HUDViewTypeMessage" statusBarChangeStyle:1];
}
- (IBAction)warning:(id)sender {
    [ZSTopDownHUD showHUDAutoHideWithType:HUDViewTypeWarning hint:@"HUDViewTypeWarning"];
}
- (IBAction)net:(id)sender {
    [self showTDHUDAutoHideWithType:HUDViewTypeNetStatus text:@"HUDViewTypeNetStatus" statusBarChangeStyle:1];
}
- (IBAction)custom:(id)sender {
    [ZSTopDownHUD showHUDAutoHideWithType:HUDViewTypeCustom image:[UIImage imageNamed:@"example_tdHUD@2x"] hint:@"HUDViewTypeCustom" hintTextColor:[UIColor blueColor] backgroundColor:[UIColor brownColor]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
